package com.designpattern.singleton;

/**
 * 单例模式：
 * 和第一种一样
 */
public class Main02 {
    private  static final Main02 INSTANCE;
    static {
        INSTANCE = new Main02();
    }

    private Main02(){

    }

    public static Main02 getInstance(){
        return INSTANCE;
    }
}
